import type {RouteRecordRaw} from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/scene_menu',
  component: Layout,
  redirect: '/scene_menu/list',
  name: 'sceneMenu',
  meta: {
    title: '可视化',
    icon: 'i-heroicons-solid:menu-alt-3',
  },
  children: [
    {
      path: 'statistics',
      name: 'parkingStatistics',
      component: () => import('@/views/park/statistics/index.vue'),
      meta: {
        title: '数据可视化',
      },
    },
  ],
}

export default routes
